<?php

namespace app\index\controller;
use app\index\Controller;
use think\Db;
/**
 * @title ServiceInfo
 * @description 接口说明
 * @group 客服信息
 */
class ServiceInfo extends  Controller{
    /**
     * @var array 白名单方法，如果设置会覆盖黑名单方法，只允许白名单方法能正常访问
     */
    protected static $allowList = ['index'];
    /**
     * @title ServiceInfo
     * @description 接口说明
     * @author 梁敏
     * @url /index/service_info/index
     * @method GET
     *
     * @return data:客服信息@!
     * @data telephone:客服电话 qrcode:微信二维码
     */
    public function index() {
        $data = config('service_info');
        $phone = Db::name('service_info')->select();
        $data['phone'] = $phone;
        $msg['data'] = $data;
        return $this->success($msg);
    }

}
